Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-typescript-compiler

Package Overview
Dependencies
Maintainers
6
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-typescript-compiler

A Broccoli plugin which compiles TypeScript files.

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
793
decreased by-3.41%
Maintainers
6
Weekly downloads
 
Created
Source

broccoli-typescript-compiler

Build Status Build status

A Broccoli plugin which compiles TypeScript files.

How to install?

$ npm install broccoli-typescript-compiler --save-dev

How to use?

var typescript = require('broccoli-typescript-compiler').typescript;
var cjsTree = typescript(inputTree, {
  tsconfig: {
    compilerOptions: {
      module: "commonjs",
      target: "es5",
      moduleResolution: "node",
      newLine: "LF",
      rootDir: "src",
      outDir: "dist",
      sourceMap: true,
      declaration: true
    },
    files: [
      "src/index.ts",
      "src/tests/**"
    ]
  },
  annotation: "compile program"
});

Config Options:

tsconfig:

annotation:

An optional string, which when provide should be a descriptive annotation. Useful for debugging, to tell multiple instances of the same plugin apart.

Ways to use:

via the broccoli plugin subclass

var TypeScriptPlugin = require('broccoli-typescript-compiler').TypeScriptPlugin;

via a function:

var filterTypeScript = require('broccoli-typescript-compiler').filterTypeScript;
var scriptTree = filterTypeScript(inputTree);

Keywords

FAQs

Package last updated on 15 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc